package com.university.report.cmn.controller;

import com.university.report.cmn.service.ImpRegionService;
import com.university.report.common.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName health_report
 * @Author Jinondo
 * @Date 2021/6/20 22:09
 */
@RestController
@RequestMapping("/api/dict")
public class ImpRegionController {
    @Autowired
    ImpRegionService impRegionService;

    @GetMapping("/getImpRegionToday")
    public Result getImpRegionToday(){
        System.out.println("enter getImpRegionToday");
        Object impRegionToday = impRegionService.getImpRegionToday();
        System.out.println(impRegionToday);
        return Result.ok(impRegionToday);
    }

}
